<script type="text/html" template lay-done="layui.data.done(d);">
<div class="layui-form coreshop-form layui-form-pane" lay-filter="LAY-app-CoreCmsFollowRecords-createForm" id="LAY-app-CoreCmsFollowRecords-createForm">
	
	<!--<div class="layui-form-item">
        <label for="id" class="layui-form-label  layui-form-required"></label>
        <div class="layui-input-block">
            <input  type="number" min="0" max="999999" name="id"   lay-verType="tips" lay-verify="required|number" class="layui-input" value="1" placeholder="请输入" lay-reqText="请输入并为数字"  />
        </div>
    </div>-->
	
	<!--<div class="layui-form-item">
        <label for="number" class="layui-form-label  layui-form-required">客户编号</label>
        <div class="layui-input-block">
            <input name="number"   lay-verType="tips" lay-verify="required" class="layui-input"  placeholder="请输入客户编号" lay-reqText="请输入客户编号"  />
        </div>
    </div>-->
	
	<!--<div class="layui-form-item">
        <label for="createTime" class="layui-form-label  layui-form-required">创建时间</label>
        <div class="layui-input-block">
            <input name="createTime"  id="createTime-CoreCmsFollowRecords-createTime" type="text" lay-verType="tips" lay-verify="required|datetime" class="layui-input" placeholder="请输入创建时间" lay-reqText="请输入创建时间"  />
        </div>
    </div>-->
	
	<!--<div class="layui-form-item">
        <label for="account" class="layui-form-label  layui-form-required">跟进账号</label>
        <div class="layui-input-block">
            <input name="account"   lay-verType="tips" lay-verify="required" class="layui-input"  placeholder="请输入跟进账号" lay-reqText="请输入跟进账号"  />
        </div>
    </div>-->
	
    <div class="layui-form-item" style="display:flex; justify-content:flex-start">
        <div>
            <label for="followContent" class="layui-form-label  layui-form-required">根据内容</label>
            <div class="layui-input-block">
                <textarea name="followContent" lay-verType="tips" lay-verify="required" class="layui-input" placeholder="请输入根据内容" lay-reqText="请输入根据内容" style="width:300px;  height:100px" />
            </div>
        </div>
 
            <input type="button" style="margin-left: 25px;" class="layui-btn" lay-submit lay-filter="LAY-app-CoreCmsFollowRecords-createForm-submit" id="LAY-app-CoreCmsFollowRecords-createForm-submit" value="确认添加">
        
        
    </div>
	

      <div class="table-body">
          <table id="LAY-app-CoreCmsFollowRecords-tableBox" lay-filter="LAY-app-CoreCmsFollowRecords-tableBox"></table>
      </div>
</div>
</script>
<script>
    var debug= layui.setter.debug;
    layui.data.done = function (d) {
        //开启调试情况下获取接口赋值数据
        if (debug) { console.log("sfsdfsfsdfs", d.params.data.numbersss); }
        layui.use(['admin', 'form', 'laydate', 'upload', 'coreHelper', 'cropperImg'],
        function () {
            var $ = layui.$
                , form = layui.form
                , admin = layui.admin
                , laydate = layui.laydate
                , upload = layui.upload
                , cropperImg = layui.cropperImg
                , table = layui.table
                , coreHelper = layui.coreHelper;
	        
            laydate.render({
                elem: '#createTime-CoreCmsFollowRecords-createTime',
                type: 'datetime',
                value: new Date(),
                fullPanel: true
            });
	        form.verify({
                
            });
            //数据绑定
            table.render({
                elem: '#LAY-app-CoreCmsFollowRecords-tableBox',
                url: layui.setter.apiUrl + 'Api/CoreCmsFollowRecords/GetPageListByNumber',
                method: 'POST',
                toolbar: '#LAY-app-CoreCmsFollowRecords-toolbar',
                pagebar: '#LAY-app-CoreCmsFollowRecords-pagebar',
                className: 'pagebarbox',
                defaultToolbar: ['filter', 'print', 'exports'],
                where: { numberppp: d.params.data.numbersss },
                page: true,
                limit: 10,
                limits: [10, 15, 20, 25, 30, 50, 100, 200],
                text: { none: '暂无相关数据' },
                cols: [
                    [
                        //{ type: "checkbox", fixed: "left" },
                        //{ field: 'id', title: '', width: 60, sort: false },
                        { field: 'number', title: '客户编号', sort: false, width: 105 },
                        { field: 'createTime', title: '创建时间', width: 130, sort: false },
                        { field: 'nickName', title: '跟进人', sort: false, width: 105 },
                        { field: 'followContent', title: '根据内容', sort: false, width: 300 }
                       /* { width: 162, align: 'center', title: '操作', fixed: 'right', toolbar: '#LAY-app-CoreCmsFollowRecords-tableBox-bar' }*/
                    ]
                ]
            });
            //重载form
            form.render(null, 'LAY-app-CoreCmsFollowRecords-createForm');

        })
    };
</script>
